.class public Lde/dealdoktor/app/activities/Forum;
.super Landroid/app/Activity;
.source "Forum.java"


# instance fields
.field private dialog:Landroid/app/ProgressDialog;

.field webview:Landroid/webkit/WebView;


# direct methods
.method public constructor <init>()V
    .locals 0

    .prologue
    .line 15
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    return-void
.end method

.method static synthetic access$0(Lde/dealdoktor/app/activities/Forum;)Landroid/app/ProgressDialog;
    .locals 1
    .parameter

    .prologue
    .line 18
    iget-object v0, p0, Lde/dealdoktor/app/activities/Forum;->dialog:Landroid/app/ProgressDialog;

    return-object v0
.end method


# virtual methods
.method public onBackPressed()V
    .locals 2

    .prologue
    .line 72
    iget-object v1, p0, Lde/dealdoktor/app/activities/Forum;->webview:Landroid/webkit/WebView;

    invoke-virtual {v1}, Landroid/webkit/WebView;->canGoBack()Z

    move-result v1

    if-eqz v1, :cond_0

    .line 74
    iget-object v1, p0, Lde/dealdoktor/app/activities/Forum;->webview:Landroid/webkit/WebView;

    invoke-virtual {v1}, Landroid/webkit/WebView;->goBack()V

    .line 80
    :goto_0
    return-void

    .line 77
    :cond_0
    invoke-virtual {p0}, Lde/dealdoktor/app/activities/Forum;->getParent()Landroid/app/Activity;

    move-result-object v0

    check-cast v0, Lde/dealdoktor/app/activities/TabGroupActivity;

    .line 78
    .local v0, parentActivity:Lde/dealdoktor/app/activities/TabGroupActivity;
    invoke-virtual {v0}, Lde/dealdoktor/app/activities/TabGroupActivity;->onBackPressed()V

    goto :goto_0
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 5
    .parameter "savedInstanceState"

    .prologue
    const/4 v4, 0x1

    const/4 v3, 0x0

    const/4 v2, -0x1

    .line 22
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 23
    const v0, 0x7f030005

    invoke-virtual {p0, v0}, Lde/dealdoktor/app/activities/Forum;->setContentView(I)V

    .line 24
    new-instance v0, Landroid/webkit/WebView;

    invoke-virtual {p0}, Lde/dealdoktor/app/activities/Forum;->getParent()Landroid/app/Activity;

    move-result-object v1

    invoke-direct {v0, v1}, Landroid/webkit/WebView;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lde/dealdoktor/app/activities/Forum;->webview:Landroid/webkit/WebView;

    .line 25
    iget-object v0, p0, Lde/dealdoktor/app/activities/Forum;->webview:Landroid/webkit/WebView;

    new-instance v1, Landroid/view/ViewGroup$LayoutParams;

    invoke-direct {v1, v2, v2}, Landroid/view/ViewGroup$LayoutParams;-><init>(II)V

    invoke-virtual {v0, v1}, Landroid/webkit/WebView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 26
    const v0, 0x7f0b0008

    invoke-virtual {p0, v0}, Lde/dealdoktor/app/activities/Forum;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iget-object v1, p0, Lde/dealdoktor/app/activities/Forum;->webview:Landroid/webkit/WebView;

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    .line 27
    iget-object v0, p0, Lde/dealdoktor/app/activities/Forum;->webview:Landroid/webkit/WebView;

    invoke-virtual {v0}, Landroid/webkit/WebView;->getSettings()Landroid/webkit/WebSettings;

    move-result-object v0

    invoke-virtual {v0, v4}, Landroid/webkit/WebSettings;->setJavaScriptEnabled(Z)V

    .line 28
    iget-object v0, p0, Lde/dealdoktor/app/activities/Forum;->webview:Landroid/webkit/WebView;

    invoke-virtual {v0}, Landroid/webkit/WebView;->getSettings()Landroid/webkit/WebSettings;

    move-result-object v0

    sget-object v1, Landroid/webkit/WebSettings$LayoutAlgorithm;->NORMAL:Landroid/webkit/WebSettings$LayoutAlgorithm;

    invoke-virtual {v0, v1}, Landroid/webkit/WebSettings;->setLayoutAlgorithm(Landroid/webkit/WebSettings$LayoutAlgorithm;)V

    .line 29
    iget-object v0, p0, Lde/dealdoktor/app/activities/Forum;->webview:Landroid/webkit/WebView;

    invoke-virtual {v0, v3}, Landroid/webkit/WebView;->setScrollBarStyle(I)V

    .line 31
    new-instance v0, Landroid/app/ProgressDialog;

    invoke-virtual {p0}, Lde/dealdoktor/app/activities/Forum;->getParent()Landroid/app/Activity;

    move-result-object v1

    invoke-direct {v0, v1}, Landroid/app/ProgressDialog;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lde/dealdoktor/app/activities/Forum;->dialog:Landroid/app/ProgressDialog;

    .line 32
    iget-object v0, p0, Lde/dealdoktor/app/activities/Forum;->dialog:Landroid/app/ProgressDialog;

    const-string v1, ""

    invoke-virtual {v0, v1}, Landroid/app/ProgressDialog;->setMessage(Ljava/lang/CharSequence;)V

    .line 33
    iget-object v0, p0, Lde/dealdoktor/app/activities/Forum;->dialog:Landroid/app/ProgressDialog;

    invoke-virtual {v0, v4}, Landroid/app/ProgressDialog;->setIndeterminate(Z)V

    .line 34
    iget-object v0, p0, Lde/dealdoktor/app/activities/Forum;->dialog:Landroid/app/ProgressDialog;

    invoke-virtual {v0, v3}, Landroid/app/ProgressDialog;->setCancelable(Z)V

    .line 35
    iget-object v0, p0, Lde/dealdoktor/app/activities/Forum;->dialog:Landroid/app/ProgressDialog;

    const-string v1, "Wird geladen ..."

    invoke-virtual {v0, v1}, Landroid/app/ProgressDialog;->setTitle(Ljava/lang/CharSequence;)V

    .line 36
    iget-object v0, p0, Lde/dealdoktor/app/activities/Forum;->dialog:Landroid/app/ProgressDialog;

    invoke-virtual {v0}, Landroid/app/ProgressDialog;->show()V

    .line 37
    iget-object v0, p0, Lde/dealdoktor/app/activities/Forum;->webview:Landroid/webkit/WebView;

    new-instance v1, Lde/dealdoktor/app/activities/Forum$1;

    invoke-direct {v1, p0}, Lde/dealdoktor/app/activities/Forum$1;-><init>(Lde/dealdoktor/app/activities/Forum;)V

    invoke-virtual {v0, v1}, Landroid/webkit/WebView;->setWebChromeClient(Landroid/webkit/WebChromeClient;)V

    .line 51
    iget-object v0, p0, Lde/dealdoktor/app/activities/Forum;->webview:Landroid/webkit/WebView;

    new-instance v1, Lde/dealdoktor/app/activities/Forum$2;

    invoke-direct {v1, p0}, Lde/dealdoktor/app/activities/Forum$2;-><init>(Lde/dealdoktor/app/activities/Forum;)V

    invoke-virtual {v0, v1}, Landroid/webkit/WebView;->setWebViewClient(Landroid/webkit/WebViewClient;)V

    .line 65
    iget-object v0, p0, Lde/dealdoktor/app/activities/Forum;->webview:Landroid/webkit/WebView;

    const/16 v1, 0x82

    invoke-virtual {v0, v1}, Landroid/webkit/WebView;->requestFocus(I)Z

    .line 67
    iget-object v0, p0, Lde/dealdoktor/app/activities/Forum;->webview:Landroid/webkit/WebView;

    const-string v1, "http://www.dealdoktor.de/schnaeppchen-forum/"

    invoke-virtual {v0, v1}, Landroid/webkit/WebView;->loadUrl(Ljava/lang/String;)V

    .line 68
    return-void
.end method

.method public onSearchRequested()Z
    .locals 1

    .prologue
    .line 85
    invoke-virtual {p0}, Lde/dealdoktor/app/activities/Forum;->getParent()Landroid/app/Activity;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/Activity;->onSearchRequested()Z

    move-result v0

    return v0
.end method
